export default {
  backgroundColor: 'rgba(0, 0, 0, 0)',
  color: ['#0063FF'],
  grid: {
    top: 10,
    left: 0,
    bottom: 50,
    containLabel: true
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    },
    formatter (params) {
      let color = ['#006dff', '#2acc85']
      let res = ''
      res = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + color[0] + '"></span>' +
        params[0]['seriesName'] + ':' + params[0].value + '人</br>'
      res = params[0]['axisValue'] + '</br>' + res
      return res
    }
  },
  graphic: [
    {
      type: 'text',
      left: 'center',
      top: 'middle',
      z: 1,
      style: {
        text: '暂无数据',
        fill: 'transparent'
      }
    }
  ],
  xAxis: {
    type: 'category',
    data: [],
    axisLine: {
      lineStyle: {
        color: '#999'
      }
    },
    axisLabel: {
      color: '#999',
      interval: 0
    },
    axisTick: {
      lineStyle: {
        color: '#999'
      },
      alignWithLabel: true
    }
  },
  yAxis: {
    type: 'value',
    minInterval: 1,
    axisLine: {
      lineStyle: {
        color: '#999'
      },
      show: false
    },
    axisLabel: {
      color: '#999'
    },
    axisTick: {
      lineStyle: {
        color: '#999'
      },
      show: false,
      alignWithLabel: true
    }
  },
  series: [
    {
      name: '门店客流量',
      type: 'bar',
      barWidth: '40%',
      data: null
    }
  ]
}
